-- 我不知道源代码如何,我自己写的
local assets =
{
    Asset("ANIM", "anim/xzkb_xin_wupin_jam.zip"),
}

local function fn()
    local inst = CreateEntity()

    inst.entity:AddTransform()
    inst.entity:AddAnimState()
    inst.entity:AddNetwork()

    MakeInventoryPhysics(inst)

    inst.AnimState:SetBank("xzkb_xin_wupin_jam")
    inst.AnimState:SetBuild("xzkb_xin_wupin_jam")
    inst.AnimState:PlayAnimation("idle")

    MakeInventoryFloatable(inst)

    inst.entity:SetPristine()

    if not TheWorld.ismastersim then
        return inst
    end

    inst:AddComponent("stackable")
    inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM

    inst:AddComponent("inspectable")

    inst:AddComponent("inventoryitem")

    inst:AddComponent("tradable")

    inst:AddComponent("edible")
    inst.components.edible.foodtype = FOODTYPE.VEGGIE -- 实测女武神不吃
    inst.components.edible.healthvalue = 30
    inst.components.edible.hungervalue = 25
    inst.components.edible.sanityvalue = 15

    MakeHauntableLaunchAndPerish(inst)

    return inst
end

return Prefab("vagteouqivwx_yus_wmquwe_xqmxrwyiy", fn, assets)
